package com.example.Aop;


import java.util.Arrays;
import java.util.Date;
import java.util.List;

public interface BaseConstant {
    //初始化默认管理员编码
    String DEFAULT_ADMIN_STAFF_CODE = "0001";
    //初始化默认名称
    String DEFAULT_DEPT_NAME = "工程部";
    String DEFAULT_GROUP_NAME = "默认分组";
    //默认number0
    Integer DEFAULT_NUMBER = 0;
    //默认number1
    Integer DEFAULT_NUMBER1 = 1;
    Integer DEFAULT_NUMBER2 = 100;
    //默认number0
    Integer ENTRY_FEE = 0;
    Integer PERSON_CHARGE = 1;
    Integer SERVICE_FEE = 2;
    //枚举账户金额变动传参为-1
    Integer DEFAULT_NUMBER5=-1;
    //feign内部调用请求头
    String INNER = "inner";
    String RESOURCE_INFO = "RESOURCE_INFO:";
    //商家颜色背景
    String COLOURGREY = "grey";
    String COLOURCHINESEGREY = "灰色背景";
    String COLOURBRIGHT = "bright";
    String COLOURCHINESEBRIGHT = "亮色背景";
    //打赏订单的默认前缀
    String DSFRE = "R";
    long REDIS_CACHE_DEFAULT_EXPIRE_TIME = 2 * 3600;// 缓存时限2小时
     long REDIS_CACHE_DELETE_EXCEL_LOG_EXPIRE_TIME = 24 * 3600;// 缓存时限24小时
    long REDIS_CACHE_12_EXPIRE_TIME = 12 * 3600;// 缓存时限24小时
    long REDIS_CACHE_30_MINUTE_EXPIRE_TIME = 30 * 60;// 缓存时限30分钟
    long REDIS_CACHE_5_MINUTE_EXPIRE_TIME=5 * 60;// 缓存时限5分钟
    long REDIS_CACHE_10_MINUTE_EXPIRE_TIME = 10 * 60;// 缓存时限30分钟
    long REDIS_CACHE_13_MINUTE_EXPIRE_TIME=13 * 60;// 缓存时限13分钟

    long REDIS_CACHE_3_SECOND = 3;
    long REDIS_CACHE_5_SECOND = 5;
    long REDIS_CACHE_20_SECOND = 20;



    String SUCCESS = "success";
    long DEFAULT=0L;//总量为空，则赋值为零

    long   RESOURCE_API_EXPIRE_TIME = 10 * 60 * 1000;// 接口调用的时间戳过期时间10分钟
    String RESOURCE_SECRET_KEY = "utrngt654e55sf358fis967wnr8g7ht";


    String RESPONSE_SUCCESS_CODE = "0";
    String RESPONSE_SUCCESS_CODE1 = "1";
    String GBK_CHARSET = "GBK";
    String DEFAULT_CHARSET = "UTF-8";
    String IMG_BASE_64 = "data:image/%s;base64,%s";
    long REDIS_NONE_EXPIRE = -1;
    String KEY_PREFIX = "*:";
    String KEY_PATERN = "*";
    String KEY_SUFFIX = ":*";
    String REDIS_SEPARATOR_COLON = ":";
    String REDIS_SEPARATOR_UNDERLINE = "_";
    String CACHE_PRIMARY_KEY = "PrimaryKey:";
    long REDIS_EXPIR_ONE_DAY_SECONDS = 24 * 60 * 60;
    String REDIS_KEY_PREFIX = "";// redis前缀KEY
    String KEY_GENERATOR_METHOD = "methodParamKeyGenerator";
    String KEY_GENERATOR_DB = "dbKeyGenerator";
    String VERIFY_CODE_KEY = "RANDOM_NUM:";
    int MAX_LOG_LENGTH = 2500;
    long GMT_TIME = 8 * 60 * 60 * 1000;
    /**
     * 权限认证模块
     **/
    String SECRET_KEY = "krixh27rnfis9567wnr83n48";
    String PC_SECRET_KEY = "krixh27rnfis9567wnr83n48sasfses";



    /**
     * 接入平台相关
     */
    String PLATFORM_SENIOR = "senior";
    long SENIOR_API_EXPIRE_TIME = 10 * 60 * 1000;// 接口调用的时间戳过期时间10分钟
    String SENIOR_SECRET_KEY = "utr434gt654e55sf358fis967wnr8g8ht";

    String PLATFORM_SENIOR_WX = "senior-wx";
    long SENIOR_WX_API_EXPIRE_TIME = 10 * 60 * 1000;// 接口调用的时间戳过期时间10分钟
    String SENIOR_WX_SECRET_KEY = "k7rngt654er78fis967wnr8ght48";

    String PLATFORM_MANUFACTURER_WX = "manufacturer-wx";
    long MANUFACTURER_WX_API_EXPIRE_TIME = 10 * 60 * 1000;// 接口调用的时间戳过期时间10分钟
    String MANUFACTURER_WX_SECRET_KEY = "k7rngt654er78fis967wnr8ght48";

    String PLATFORM_MANUFACTURER_WEB = "manufacturer-web";
    long MANUFACTURER_WEB_API_EXPIRE_TIME = 10 * 60 * 1000;// 接口调用的时间戳过期时间10分钟
    String MANUFACTURER_WEB_SECRET_KEY = "utr434gt654e55sf358fis967wnr8g8ht";

    String PLATFORM_SYSTEM = "resource-system";
    long SYSTEM_API_EXPIRE_TIME = 10 * 60 * 1000;// 接口调用的时间戳过期时间10分钟
    String SYSTEM_SECRET_KEY = "k7rngt654er78fis967wnr8ght48";

    String PLATFORM_WX = "resource-wxserver";
    long WX_API_EXPIRE_TIME = 10 * 60 * 1000;// 接口调用的时间戳过期时间10分钟
    String WX_SECRET_KEY = "k7rngt654er78fis967wnr8ght48";

    String PLATFORM_KM = "resource-km";
    String PLATFORM_KMRESOURCE = "resource-kmresource";
    long KM_API_EXPIRE_TIME = 10 * 60 * 1000;// 接口调用的时间戳过期时间10分钟
    String KM_SECRET_KEY = "k7rngt654er78fis967wnr8ght48";



    String PLATFORM_BUSINESS = "resource-business";
    long BUSINESS_API_EXPIRE_TIME = 10 * 60 * 1000;// 接口调用的时间戳过期时间10分钟
    String BUSINESS_SECRET_KEY = "B7rngt654er78fis967wnr8ght123";

    String PLATFORM_MANAGE = "resource-manage";
    long MANAGE_API_EXPIRE_TIME = 10 * 60 * 1000;// 接口调用的时间戳过期时间10分钟
    String MANAGE_SECRET_KEY = "k7rngt654er78fis967wnr8ght48";

    String PLATFORM_OFFLINE = "offline";
    long OFFLINE_API_EXPIRE_TIME = 600000L;
    String OFFLINE_SECRET_KEY = "utrngt654e55sf358fis967wnr8g7ht";

    String PLATFORM_IPADS = "ipads";
    long IPADS_API_EXPIRE_TIME = 600000L;
    String IPADS_SECRET_KEY = "utrngt654e55sf358fis967wnr8g7ht";

    String RESOURCE_PERSON_STATE_PREFIX = "RESOURCE_PERSON_STATE_PREFIX:";
    String RESOURCE_SUB_CLASS_SIGN_NUMBER = "RESOURCE_SUB_CLASS_SIGN_NUMBER:";
//    String ATTENDANCE = "RESOURCE_ATTENDANCE:SUBCOMPANYID:STAFFID:INTERFACENAME:";

    String RESOURCE_PERSON_PICTURE_UPDATE = "RESOURCE_PERSON_PICTURE_UPDATE";
    /*
     * 传输加密码密
     */
    String TRANSLATE_SECRET_KEY = "yrixh27ygfis9527wnr83888";

    /*
     * K米确认支付礼物订单唯一调用
     */
    String KM_CREATE_ORDER_NO = "KM_CREATE_ORDER_NO:";
    /*
     * 是否压缩传输0 否 1是 2加密并压缩传3加密传输
     */
    int TSS_VALUE_NORMAL = 0;
    int TSS_VALUE_ZIP = 1;
    int TSS_VALUE_ZIP_3DES = 2;
    int TSS_VALUE_DECRYPT3DES = 3;
    /**
     * 替换关键字
     */
    String RESOURCE_RESOURCE = "资源";
    String RESOURCE_TICKET = "门票";

    /**
     * 公用状态
     */
    int STATUS_USE = 0;//启用
    int STATUS_STOP = 1;//停用
    int STATUS_DELETE = 2;//删除
    int STATUS_ALL = 3;//全部状态

    int STATUS_YES = 1;//是，资源
    int STATUS_NO = 0;//否,管理员

    /**
     * 打赏
     */
    int STATUS_PAY_AFTER = 1;//后付
    int STATUS_PAY_BEFORE = 0;//现付

    int STATUS_GIFT_USE = 0;//未同步 未结账
    int STATUS_GIFT_ERROR = 1;//已同步  已结账
    int STATUS_GIFT_SEND = 2;//未支付
    int STATUS_GIFT_FINISH = 3;//
    int STATUS_GIFT_NO_MQ_FINISH = 4;//


    //--登录相关接口开始
    String LOGIN_TYPE_TERMINAL_H5 = "TERMINAL_H5|";
    String TERMINAL_H5_LOGIN_KEY_PREFIX = "TERMINAL_H5_LOGIN:";
    String TERMINAL_LOGIN_KEY_PREFIX = "TERMINAL_LOGIN:";
    String ONLINE_DEFAULT_USER_TOKEN ="ONLINE_DEFAULT_USER_TOKEN:";
    String SECRET_PWD_KEY = "evideoht";
    String TERMINAL_PWD_KEY = "resourcemanage";
    String LOGIN_TYPE_H5 = "H5|";
    String LOGIN_TYPE_KM = "KM|";
    String LOGIN_TYPE_WX = "WX|";
    String LOGIN_TYPE_YG = "YG|";
    String LOGIN_TYPE_TERMINAL = "TERMINAL|";
    String LOGIN_TYPE_IPADS = "IPADS|";
    //管理商登录
    String RESOURCE_LOGIN_MANAGE_KEY = "RESOURCE_MANAGE_LOGIN:USERID:TOKEN";
    String RESOURCE_LOGIN_MANAGE_PREFIX = "RESOURCE_MANAGE_LOGIN:";
    long H5_TOKEN_EXPIRATION_DURATION = 8 * 60 * 60;//token过期时间，单位秒
    long H5_TOKEN_EXPIRATION_DURATION_DEV = 8 * 60 * 60;//token过期时间，单位秒
    long TERMINAL_TOKEN_EXPIRATION_DURATION = 8 * 60 * 60;//token过期时间，单位秒
    String SENIOR_LOGIN_COMPANY_KEY = "SENIOR_COMPANY_LOGIN:SUBCOMPANYCODE:USERCODE:TOKEN";
    String SENIOR_LOGIN_COMPANY_PREFIX = "SENIOR_COMPANY_LOGIN:";
    String SENIOR_WX_LOGIN_COMPANY_PREFIX = "SENIOR_WX_LOGIN:";
    String RESOURCE_LOGIN_COMPANY_KEY = "RESOURCE_COMPANY_LOGIN:SUBCOMPANYCODE:USERCODE:TOKEN";
    String RESOURCE_LOGIN_COMPANY_PREFIX = "RESOURCE_COMPANY_LOGIN:";
    String TERMINAL_LOGIN_KEY = "TERMINAL_LOGIN:SUBCOMPANYCODE:USERCODE:TOKEN";
    String IPADS_LOGIN_KEY_PREFIX = "IPADS_LOGIN:";
    String IPADS_LOGIN_KEY = IPADS_LOGIN_KEY_PREFIX + "SUBCOMPANYCODE:USERCODE:TOKEN";
    String BUSINESS_LOGIN_KEY_PREFIX = "BUSINESS_LOGIN:";
    String LOGIN_WX_KEY_PREFIX = "RESOURCE_WX_LOGIN:";
    String LOGIN_KM_KEY_PREFIX = "RESOURCE_KM_LOGIN:";
    String LOGIN_KM_RESOURCE_KEY_PREFIX = "RESOURCE_KM_RESOURCE_LOGIN:";
    String LOGIN_WX_KEY = LOGIN_WX_KEY_PREFIX + "SUBCOMPANYCODE:USERCODE:TOKEN";
    String LOGIN_KM_KEY = LOGIN_KM_KEY_PREFIX + "SUBCOMPANYCODE:USERCODE:TOKEN";
    String SUB_COMPANY_ROOM_STATUS_LIST = "RESOURCE_ROOM_STATUS_LIST:SUBCOMPANY:";
    String SUB_COMPANY_ROOM_CONSUME_HASH_SET = "SUB_COMPANY_ROOM_CONSUME_HASH_SET:SUBCOMPANY:";
    String SUB_COMPANY_ROOM_PERSON_LIST = "RESOURCE_ROOM_PERSON_LIST:SUBCOMPANY:OPENBARCHECKOUTID";
    //redis的key
    String WX_APP_CLOSE = "WX_APP_CLOSE";
    //公众号二维码场景值key  xxx::大云管总店员工id::供应商用户id
    String mpQrcodeCreate = "MPQR:SENIORCOMPANYSTAFFDOCUMENTID:MANUFACTURERUSERID";


    //四部  请求头 code
    String HEARD_CODE_YFSB = "yfsb";


    //表单请求时日志打印
    String PICTUREURL = "/onLineForward/mq/upLoadAndDelete";
    //小程序获取环境地址信息
    String envUrl = "/resource-system/getEnvInfo";
    //小程序资源端路径前缀
    String wxPersonUrl = "/resource-wxserver/person/**";
    //(未充值资源进行Url放行)小程序支付接口
    String payUrl="/resource-pay/pay/**";
    String messageUrl = "/resource-wxserver/person/self/personMessage";

    //----------------REDIS锁key名开始----------------
    String REDIS_LOCK_PERSON_ACCOUNT = "REDIS_LOCK_PERSON_ACCOUNT";
    String REDIS_LOCK_PERSON_ACCOUNT_FINE="REDIS_LOCK_PERSON_ACCOUNT_FINE";
    String REDIS_LOCK_PERSON_ACCOUNT_revoke_Fine="REDIS_LOCK_PERSON_ACCOUNT_FINE";
    String REDIS_LOCK_UPLOAD_APP = "REDIS_LOCK_UPLOAD_APP";
    String REDIS_LOCK_SUBMITAUDIT_APP = "REDIS_LOCK_SUBMITAUDIT_APP";
    String REDIS_LOCK_RELEASE_APP = "REDIS_LOCK_RELEASE_APP";
    String REDIS_LOCK_REGISTERPARK = "REDIS_LOCK_REGISTERPARK";
    String REDIS_LOCK_SENDPARKREGISTERMSG = "REDIS_LOCK_SENDPARKREGISTERMSG";
    String REDIS_LOCK_SAVEKF = "REDIS_LOCK_SAVEKF";
    String REDIS_LOCK_EDITKF = "REDIS_LOCK_EDITKF";
    String REDIS_LOCK_WX_SIGNPUNCHCLOCK="REDIS_LOCK_WX_SIGNPUNCHCLOCK";
    String REDIS_LOCK_WEB_CHECK_WITHDRAWAL="REDIS_LOCK_WEB_CHECK_WITHDRAWAL";
    String REDIS_LOCK_SUB_COMPANY_BUSINESS="REDIS_LOCK_SUB_COMPANY_BUSINESS";
    String REDIS_LOCK_SUB_COMPANY_RESOURCE_EXCEL="REDIS_LOCK_SUB_COMPANY_RESOURCE_EXCEL";
    String SUB_COMPANY_RESOURCE_EXCEL_DATE="SUB_COMPANY_RESOURCE_EXCEL_DATE";
    String REDIS_LOCK_ROOMBOOKORCANCEL="REDIS_LOCK_ROOMBOOKORCANCEL";
    String SUB_COMPANY_RESOURCE_KEYWORDS_REPLACE="SUB_COMPANY_RESOURCE_KEYWORDS_REPLACE";
    String REDIS_LOCK_RESUME_PERSON_WORK="REDIS_LOCK_RESUME_PERSON_WORK";
    String REDIS_LOCK_CUSTOMER_EXCEL="REDIS_LOCK_CUSTOMER_EXCEL";
    String SUB_COMPANY_CUSTOMER_EXCEL_DATE="SUB_COMPANY_CUSTOMER_EXCEL_DATE";
    String REDIS_LOCK_PARAM_AOP="REDIS_LOCK_PARAM_AOP";
    //----------------REDIS锁key名结束----------------

    //头像url
    //男
    String PERSON_HEAD_PORTRAIT = "https://resource-company-pro.oss-cn-shenzhen.aliyuncs.com/avatar/avatar02.png";
    //女
    String STAFF_HEAD_PORTRAIT = "https://resource-company-pro.oss-cn-shenzhen.aliyuncs.com/avatar/avatar03.png";
    //链路日志头部
    String TRACE_ID_HEADER = "traceId";

    List<String> PLATFORM_KM_List= Arrays.asList(PLATFORM_KM,PLATFORM_KMRESOURCE);

    //token头部
    String TOKEN_HEADER = "token";
}
